<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .box {
            background-color: rgb(255, 242, 226);
            padding: 20px;

        }

        .box .list .shang {
            display: flex;
        }

        .box .one {
            display: flex;
            align-items: center;
            margin: 15px 0;
        }

        .box .one .zhong {
            flex: 1;
        }

        .box .one .zhong span,
        span+p {
            color: orangered;
            font-size: 14px;
        }

        .box .one .zhong p+p {
            color: rgb(113, 112, 112);
            font-size: 12px;
        }

        .box .one .top {
            position: relative;
        }

        .box .one .top p {
            position: absolute;
            bottom: 4px;
            left: 5px;
            color: rgb(8, 0, 246);
            font-size: 12px;
        }

        .box .one .top img {
            width: 80px;
            height: 70px;
            border-radius: 10px;
            margin-right: 20px;
        }

        .box .one button {
            padding: 5px 10px;
            background-color: orangered;
            border-radius: 20px;
            border: none;
            color: white;
        }
    </style>
</head>

<body>
    <div class="box" id="app">
        <div class="list" v-for="(item,index) in tasklist" :key="index">
            <div class="shang">
                <h2 class="h2">{{item.h2}}</h2>
            </div>
            <div class="one">
                <div class="top">
                    <img :src="item.pic" alt="">
                    <p class="money">{{item.money}}</p>
                </div>
                <div class="zhong">
                    <p class="name">{{item.name}}</p>
                    <span class="xuanchuan">{{item.xuanchuan}}</span>
                    <p class="bi">{{item.bi}}</p>
                    <p class="dian">{{item.dian}}店></p>
                </div>
                <button class="btn">{{item.but}}</button>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./js/vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            tasklist: [
                { id: '1', h2: '热门单品', pic: './img/juzi1.jpg', money: '价值￥9.9', name: '脐橙3斤 快递到家', xuanchuan: '兑换后入手价8.9元', bi: '￥ 10', dian: '适用门店', but: '立即兑' },
                { id: '1', pic: './img/juzi2.jpg', money: '价值￥12.9', name: '耙耙柑2斤 快递到家', xuanchuan: '兑换后入手价9.9元', bi: '￥ 30', dian: '适用门店', but: '立即兑' },
                { id: '1', pic: './img/shuiguolao.jpg', money: '价值￥12.9', name: '水果捞350g', xuanchuan: '兑换后入手价6.9元', bi: '￥ 60', dian: '适用门店', but: '立即兑' }
            ]
        }
    })
</script>